{
    "layer": "top", // Waybar at top layer
    "position": "top", // Waybar position (top|bottom|left|right)
    "height": 50, // Waybar height (to be removed for auto height)
    // "width": 1880, // Waybar width
    "spacing": 2, // Gaps between modules (4px)
    // "margin-left":440,
    // "margin-right":440,
    "margin-bottom":-12,
    // "margin-top":-1,
    "modules-left": ["wlr/workspaces","mpd"],
    "modules-right": ["tray","memory","custom/cycle_wall","custom/expand","wireplumber","hyprland/language"],
    "modules-center": ["clock"],
    // Modules configuration

    // custom modules ////////////////
    "custom/dynamic_pill": {
        "return-type": "json",
        // "format":"{}",
        "exec": "~/.config/hypr/scripts/tools/start_dyn",
        "escape":true
    },
    "custom/ss":{
        "format":"{}",
        "exec":"~/.config/hypr/scripts/tools/expand ss-icon",
        "on-click": "~/.config/hypr/scripts/screenshot"
    },
    "custom/cycle_wall":{
        "format":"{}",
        "exec": "~/.config/hypr/scripts/tools/expand wall",
        // "interval": 1,
        "on-click": "~/.config/hypr/scripts/tools/expand cycle"
    },
    "custom/expand":{
        "on-click":"~/.config/hypr/scripts/expand_toolbar",
        "format":"{}",
        "exec":"~/.config/hypr/scripts/tools/expand arrow-icon"
    },
    "custom/waybar-mpris": {
        "return-type": "json",
        "exec": "echo '   '",
        "on-click": "waybar-mpris --send toggle",
        // This option will switch between players on right click.
            "on-click-right": "waybar-mpris --send player-next",
        // The options below will switch the selected player on scroll
            // "on-scroll-up": "waybar-mpris --send player-next",
            // "on-scroll-down": "waybar-mpris --send player-prev",
        // The options below will go to next/previous track on scroll
            // "on-scroll-up": "waybar-mpris --send next",
            // "on-scroll-down": "waybar-mpris --send prev",
        "escape": true
    },
    //////////////////////////////////
    "keyboard-state": {
        "numlock": true,
        "capslock": true,
        "format": "{name} {icon}",
        "format-icons": {
            "locked": "",
            "unlocked": ""
        }
    },
    "wlr/workspaces": {
        "format": "{icon}",
        "format-active": " {icon} ",
        "on-click": "activate"
        // "format-icons":{
        //     "10":"10"
        // }
    },
    "hyprland/language": {
    "format": "󰌌 {}",
    "interval": 1,
    "format-en": "US",
    "format-ru": "RU"
    },
    "hyprland/window": {
    "format": "{}",
    "rewrite": {
      "(.*) - Mozilla Firefox": "🌎 $1",
      "(.*) - zsh": "> [$1]"
      }
    },
    "mpd": {
        "format": "{stateIcon} {consumeIcon}{title} {volume}%",
        "format-disconnected": "Disconnected ",
        "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped",
        "server": "127.0.0.2",
        "unknown-tag": "???",
        "interval": 1,
        "consume-icons": {
            "on": " "
        },
        "random-icons": {
            "off": "<span color=\"#f53c3c\"></span> ",
            "on": " "
        },
        "repeat-icons": {
            "on": " "
        },
        "single-icons": {
            "on": "1 "
        },
        "state-icons": {
            "paused": "",
            "playing": ""
        },
        "on-click": "kitty -e ncmpcpp" 
    },
    "idle_inhibitor": {
        "format": "{icon}",
        "format-icons": {
            "activated": "",
            "deactivated": ""
        }
    },
    "tray": {
        // "icon-size": 21,
        "spacing": 10
    },
    "clock": {
        "timezone": "Europe/Kiev",
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
        "interval": 60,
        "format": "󱪺 {:%A, %d/%m %H:%M}",
        "max-length": 25
    },
    "cpu": {
        "interval":1,
        "format": "{icon0} {icon1} {icon2} {icon3}",
        "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
        "on-click": "kitty -e htop"
    },
    "memory": {
        "format": "{}% 󰍜"
    },
    "backlight": {
        // "device": "acpi_video1",
        "format": "{percent}% {icon}",
        "format-icons": ["", "", "", "", "", "", "", "", ""]
    },
    "battery": {
        "states": {
            "warning": 50,
            "critical": 20
        },
        "format": "{icon}",
        "format-charging": "",
        "format-plugged": "",
        // "format-good": "", // An empty format will hide the module
        // "format-full": "",
        "format-icons": ["", "", "", "", ""]
    },
    "battery#bat2": {
        "bat": "BAT2"
    },
    "network": {
        // "interface": "wlp2*", // (Optional) To force the use of this interface
        "format-wifi": "",
        "format-ethernet": "",
        "tooltip-format": "via {gwaddr} {ifname}",
        "format-linked": "",
        "format-disconnected": "wifi",
        "format-alt": "   "
    },
    "pulseaudio": {
        "scroll-step": 1, // %, can be a float
        "format": "{icon} {format_source}",
        "format-bluetooth": "{volume}% {icon} {format_source}",
        "format-bluetooth-muted": " {icon} {format_source}",
        "format-muted": " {format_source}",
        "format-icons": {
            "headphone": ["", "", ""],
            "hands-free": ["", "", ""],
            "headset": ["", "", ""],
            "phone": ["", "", ""],
            "portable": ["", "", ""],
            "car": ["", "", ""],
            "default": ["", "", ""]
        },
        "on-click": "pavucontrol"
    },
    "wireplumber": {
    "format": "{volume}% {icon}",
    "format-muted": "",
    "on-click": "pavucontrol",
    "format-icons": {
            "headphone": "",
            "hands-free": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": ["", "", ""]
            }
    }
}
